package models;

import play.*;
import play.data.validation.MaxSize;
import play.data.validation.Required;
import play.db.jpa.*;

import javax.persistence.*;

import java.util.*;

/**
 * 品牌
 * @author justin
 *
 */
@Entity
public class Brand extends BaseEntity {
    
	@Required
	public String name;
	
	@MaxSize(value=200)
	public String common;
	
	@Required
	@OneToOne(cascade=CascadeType.ALL)
	public Attachment image;
}
